package com.ty.day1.home;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/14 18:10
 */
public class MyClass {
    Student[] info;
    String name;

    public void printStudent() {
        if (info == null){
            System.out.println("班级没有学生");
            return;
        }
        for (Student s : info) {
            System.out.println(s.name);
        }
    }
}
